#ifndef PLATFORM_CONF_H
#define PLATFORM_CONF_H

#define APP_VERSION       "0.01"

#define USE_CLOCK_EXTH     0
//#define OS_CLOCK_DIFF   0
#ifdef XTH_USE_32M
#define OS_CLOCK           (32000000)
#elif XTH_USE_8M
#define OS_CLOCK           (8000000)
#else
#define OS_CLOCK           (24000000)
#endif

#include "bsp.h"

#ifdef __cplusplus
extern "C" {
#endif

#define MIN_VOL_LEVEL   3000
#define MAX_VOL_LEVEL   3600
#define AT_BUF_SIZE     400

/**
 *  Debug Port Settings
 */
#define AT_GPIO                 GpioPortB
#define AT_TX_PIN               GpioPin0    /* TX: PB00 */
#define AT_RX_PIN               GpioPin11   /* RX: PB11 */
#define AT_AF                   GpioAf3

#define DBG_GPIO                GpioPortA
#define DBG_TX_PIN              GpioPin9    /* TX: PA9 */
#define DBG_RX_PIN              GpioPin10   /* RX: PA10 */
#define DBG_AF                  GpioAf1

#define I2C0_SCL_PORT           GpioPortD
#define I2C0_SCL_PIN            GpioPin0
#define I2C0_SDA_PORT           GpioPortD
#define I2C0_SDA_PIN            GpioPin1
#define I2C0_ALTERF             GpioAf1

#define LED_GREEN_PORT          GpioPortA
#define LED_GREEN_PIN           GpioPin2

#define LED_RED_PORT            GpioPortB
#define LED_RED_PIN             GpioPin6

/****
Global Variables
****/

/****
Global Functions
****/

#if defined(__cplusplus)
}
#endif /* __cplusplus */

#endif
